﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using Pandemia.Funcionalidad;

namespace PandemiaServer
{
    public partial class FrmMonitor : Form
    {
        private Pandemonium _pandemonium;

        public FrmMonitor()
        {
            InitializeComponent();
        }

        private void FrmMonitor_Load(object sender, EventArgs e)
        {
            Text += ConfigurationManager.AppSettings["Server"];
            _pandemonium = new Pandemonium();
            _pandemonium.RefrescarConfiguracion();
            _pandemonium.IniciarServicios();
        }

        private void nodosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmNodos frmNodos = new FrmNodos();
            frmNodos.MdiParent = this;
            frmNodos.StartPosition = FormStartPosition.CenterScreen;
            frmNodos.Show();
        }

        private void comandosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmComandos frmComandos = new FrmComandos();
            frmComandos.MdiParent = this;
            frmComandos.StartPosition = FormStartPosition.CenterScreen;
            frmComandos.Show();
        }
    }
}
